<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
	<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"> </script>
	<script type="text/javascript" src="<c:url value="/resources/spring/Spring.js" />"> </script>
	<script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js" />"> </script>
	<title><fmt:message key="shoppingOrder" /></title>
</head>
<body>
<c:url var="homeUrl" value="/"/>
<div id="nav-crumbs1" class="crumbs">您的位置：<a href="${homeUrl}">首页</a><span>&gt;</span>
	<a href="${homeUrl}user/index">会员中心</a><span>&gt;</span>
	<a href="${homeUrl}domain/order">已买到的宝贝</a>
</div>

<div id="main-content">
	<div class="remide-box" id="J_Remide"></div>

	<div class="bought-list">
		<ul class="tabpanel clearfix">
			<li class="current">
				<a target="_self" hidefocus="true">您的订单</a>
			</li>
			<!--
			<li class="">
				<a target="_self" hidefocus="true" href="http://tradearchive.taobao.com/trade/itemlist/list_bought_items.htm?action=itemlist%2Fquery_action&amp;event_submit_do_query=1&amp;nekot=UvEm4O">三个月前订单</a>
			</li>
			-->
		</ul>

		<table class="bought-table" id="J_BoughtTable">
			<thead>
				<tr class="col-name">
					<th></th>
					<th class="baobei">订单编号</th>
					<th class="price">成交时间</th>
					<th class="amount">实付款(元)</th>
					<th class="trade-status">交易状态</th>
					<th class="remark">操作</th>
				</tr>
				<tr class="sep-row"><td colspan="9"></td></tr>
			</thead>
			
			<tbody data-orderid="${order.inode}" data-status="TRADE_FINISHED" class="success-order xcard">
				<c:forEach items="${orders}" var="order" varStatus="status">
				<tr class="order-hd">
					<td>&nbsp;</td>
					<td><span class="order-num">${order.inode}</span></td>
					<td><span class="deal-time">${order.createDate}</span></td>
					<td><span class="order-num">${order.totalPrice}</span></td>
					<td><span class="order-num">${order.type}</span></td>
					<td>
						<span>
							<c:url var="showUrl" value="/domain/order/show" />
							<a href="${showUrl}/${order.inode}" class="detail-link">订单详情</a>
						</span>					
					
					</td>
				</tr>
				</c:forEach>
			</tbody>
			<tfoot>
			<tr class="sep-row"><td colspan="6"></td></tr>
			<tr class="toolbar skin-gray">
				<td colspan="3"></td>
				<td class="page-nav-cell" colspan="3">
					<ul class="page-nav">
						<li class="prev-page"></li>
						<li class="curr-page"><a class="selected" href="http://trade.taobao.com/trade/itemlist/listBoughtItems.htm?action=itemlist/QueryAction&amp;event_submit_do_query=1&amp;pageNum=1">1</a>
						</li>
						<!--
						<li>
							&nbsp;&nbsp;到第<input type="text" id="J_PageNum" maxlengh="4" size="2" name="pageNum">页&nbsp;
							<input type="button" id="J_JumpTo" data-url="http://trade.taobao.com/trade/itemlist/listBoughtItems.htm?action=itemlist/QueryAction&amp;event_submit_do_query=1" value="确定">
						</li>
						-->
					</ul>
				</td>      
			</tr>
			</tfoot> 
		</table>
		<!--
		<div class="last-tips">呃，最后一页了，还没找到我要的订单，去
			<a href="http://tradearchive.taobao.com/trade/itemlist/list_bought_items.htm?action=itemlist%2Fquery_action&amp;event_submit_do_query=1&amp;nekot=UvEm4O" hidefocus="true">三个月前订单</a>继续查找。
		</div>
		-->
	</div>

</div>
</body>